Page({
  data: {
      array: [ {
          src: "./images/zhichilogo.png",
          text: "直尺",
          url: "/pages/tools/chizi/zhijiao"
      }, {
          src: "./images/liangjiao.png",
          text: "量角器",
          url: "/pages/tools/chizi/yuanjiao"
      } ]
  },
  onLoad: function() {},
  onShareTimeline: function() {
      return {
          title: "给大家推荐一个能在手机上用的尺子：锤子工具人。",
          imageUrl: "http://file.scjrh.net/hammer/logo.png"
      };
  },
  topages: function(e) {
      var r = e.currentTarget.dataset.pagesurl;
      console.log(r), wx.navigateTo({
          url: r,
          success: function() {}
      });
  },
  onShareAppMessage: function(e) {
      var r = {
          title: "给你推荐一个测量小工具",
          success: function(e) {
              e.errMsg;
          },
          fail: function() {
              "shareAppMessage:fail cancel" == res.errMsg || res.errMsg;
          }
      };
      return e.from, r;
  }
});